import { configure } from "@mall/api-services"
import { Dialog, Lazyload, Toast } from "vant"
import Vue from "vue"
import App from "./App.vue"
import "./registerServiceWorker"
import router from "./router"
import store from "./store"

configure({ urls: "http://api.mallfoundry.org" })
// configure({ urls: "http://192.168.0.102:8077/" })
// configure({ urls: "http://api.mallfoundry.com" })
Vue.config.productionTip = false

Toast.setDefaultOptions("loading", {
  duration: 1000 * 60,
  forbidClick: true,
})

Vue.use(Lazyload, {
  lazyComponent: true,
})
Vue.use(Dialog)

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount("#app")
